import Vue from 'vue'
import Vuex from 'vuex'
import goods from './modules/goods'
import cart from './modules/cart'
import user from './modules/user'
import shop from './modules/shop'
import getters from './getters'

Vue.use(Vuex)

// 创建并暴露store
const store = new Vuex.Store({
	modules: {
		goods,
		cart,
		user,
		shop
	},
	getters,
})

console.log(store)

export default store